optimise literalOsPath
authorJoey Hess <joeyh@joeyh.name>
Mon, 27 Jan 2025 19:54:24 +0000 (15:54 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 27 Jan 2025 20:36:29 +0000 (16:36 -0400)
commit98a0a9ddff677b295b186f471f5ee059e61ffe0c
tree381ac03172cb89fbaeb627e5b239022b78031ea4
parent8bafe05500ed944ac0ab08b42728ee327b4b2528
optimise literalOsPath

Taking a ShortByteString and using OverloadedStrings should avoid it
being converted from a String.

The reason there is no IsString instance for OsPath is presumably the
bad behavior of IsString for ByteString on unicode btw. But
literalOsPath won't be used with unicode in git-annex.

Sponsored-by: unqueued
Annex/Magic.hs
Assistant/Install/Menu.hs
Build/DesktopFile.hs
Config/Files.hs
Utility/FreeDesktop.hs
Utility/OSX.hs
Utility/OsPath.hs
Utility/SshConfig.hs
Utility/Tmp/Dir.hs
Utility/Tor.hs